08_03 Checkout
Checkout
Let's go ahead and take care of our checkout page.
Practice
- Pass
cart-total
to checkout - Receive
cart
,cart-total
props - Loop through
cart
- Display price, total, etc.
Here, we'll need to make sure we pass the total, which is already calculated on the homepage to the checkout page (Why calculate it again when it's already done)
We'll receive cart and cart-total as props.
We will loop and display the cart items
Make sure we display the price, total and other elements. I've already created placeholders for you.